package com.payment.service;

import com.payment.domain.dto.OrderPaymentDtoRefundDto;
import com.payment.domain.pojo.RefundRecord;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 退款记录表 服务类
 * </p>
 *
 * @author 小杰大人
 * @since 2025-09-29
 */
public interface IRefundRecordService extends IService<RefundRecord> {

    RefundRecord querySelectByOrderNo(String orderNo);

    /**
     * 退款
     * @param order
     */
    Boolean refund(OrderPaymentDtoRefundDto order);

    /**
     * 查询退款状态
     * @param orderNo
     * @return
     */
    Byte queryRefundResult(String orderNo);

    /**
     * 查询订单退款记录
     * @param orderNo
     * @return
     */
    List<RefundRecord> queryRefundRecord(String orderNo);
}
